package com.ycy.smartcourseselection.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName(value = "teacher")
public class Teacher {
    @ApiModelProperty("教师的唯一标识")
    // @TableId(type = IdType.AUTO)
    private String id;

    @ApiModelProperty("教师工号、登陆账号")
    private String workId;

    @ApiModelProperty("教师登陆密码")
    private String password;

    @ApiModelProperty("教师身份证号")
    private String identityId;

    @ApiModelProperty("教师姓名")
    private String name;

    @ApiModelProperty("教师电话")
    private String phone;

    @TableField(value = "QQ")
    @ApiModelProperty("教师QQ")
    private String QQ;

    @ApiModelProperty("教师性别(1表示男，0表示女)")
    private Integer sex;

    @ApiModelProperty("教师是否离职(1表示离职，0表示未离职)")
    private Integer isResigned;

    @ApiModelProperty("教师是否为管理员(1表示是，0表示未否)")
    private Integer isAdmin;

    @ApiModelProperty("头像下载地址")
    private String avatarUrl;

    @JsonIgnore
    @ApiModelProperty("创建时间")
    private String createTime;
}
